<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class ChangeInvitorIdToString extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('feishu_calling_card_user_sources', function (Blueprint $table) {
            $table->string('invitorId', 32)->change();
        });
        Schema::table('feishu_calling_card_users', function (Blueprint $table) {
            $table->string('invitorId', 32)->change();
        });
        Schema::table('feishu_calling_cards_invitation_logs', function (Blueprint $table) {
            $table->string('invitorId', 32)->change();
        });
        Schema::table('feishu_calling_cards_franchisee_clues', function (Blueprint $table) {
            $table->string('invitorId', 32)->change();
        });

    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {

    }
}
